//
//  XMMsgToolsCell.m
//  XunMi
//
//  Created by MacBook on 2024/4/2.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMMsgToolsCell.h"
#import "XMMsgToolsView.h"

@interface XMMsgToolsCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imgV;
@property (weak, nonatomic) IBOutlet UILabel *titleLa;
@property (weak, nonatomic) IBOutlet UIView *redV;

@end


@implementation XMMsgToolsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    kCornerRadius(_redV, 2.5, 0, UIColor.clearColor);
}

- (void)setModel:(XMMsgToolsModel *)model {
    _model = model;
    self.titleLa.text = model.title;
    self.imgV.image = kGetImage(model.imgName);
    self.redV.hidden = !model.showRed;
}


@end
